package com.yazi.mxz.job.quartz;

public abstract class MyJob implements Runnable {
	private Thread thread;
	public void doit() {
		if (null == thread || !thread.isAlive()) {
			thread = new Thread(this);
			thread.start();
		} else {
			thread.interrupt();
		}
	}
	
	public abstract void checkDoit(long timeStamp);
}
